﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects.BusinessRules;

namespace BusinessObjects
{
    public class UserGroup : BusinessObject
    {
        public UserGroup()
        {
            AddRule(new ValidateRequired("UserGroupName"));
            AddRule(new ValidateLength("UserGroupName", 0, 50));

            AddRule(new ValidateRequired("RestaurantID"));
        }

        public UserGroup(string userGroupId, string userGroupName, byte[] image, string restaurantId, string createBy,
                            DateTime createDate, string modifiedBy, DateTime modifiedDate, string description, bool isActive)
            : this()
        {
            UserGroupID = userGroupId;
            UserGroupName = userGroupName;
            Image = image;
            RestaurantID = restaurantId;
            CreateBy = createBy;
            CreateDate = createDate;
            ModifiedBy = modifiedBy;
            ModifiedDate = modifiedDate;
            Description = description;
            IsActive = isActive;
        }

        public string UserGroupID { get; set; }

        public string UserGroupName { get; set; }

        public byte[] Image { get; set; }

        public string RestaurantID { get; set; }

        public string CreateBy { get; set; }

        public DateTime CreateDate { get; set; }

        public string ModifiedBy { get; set; }

        public DateTime ModifiedDate { get; set; }

        public string Description { get; set; }

        public bool IsActive { get; set; }
    }
}
